<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>盒子模型</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        .box {
            width: 600px;
            height: 800px;
            /* 1、边框 */
            border: 3px dashed red;
            margin: 0 auto;
        }
        .box ul li {
            float: left;
            list-style: none;
            margin: 0 10px;
            padding-right: 10px;
            /* 1、边框 */
            border-right: 1px solid red;
        }
        .box .padd {
            height: 300px;
            font-size: 50px;
            border: 2px solid green;
            padding: 20px;
            margin: 0 20px;
            background: pink;
            box-shadow: 5px 2px 10px 0 #8f8e8e;
        }
    </style>
</head>
<body>
    <div class="box">
        <ul>
            <li>1</li>
            <li>2</li>
            <li>3</li>
        </ul>
        <p class="padd">内边距</p>
    </div>
</body>
</html>